﻿<Window x:Class="TaskOne.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow">
    
    <StackPanel x:Name="mainStackPanel" Orientation="Horizontal" >
        <StackPanel x:Name="firstElementsStackPanle" Orientation="Horizontal" Margin="10">
            <Border BorderBrush="Red" BorderThickness="2" Margin="5">
                <TextBlock x:Name="FirstBlock" Text="Test" TextAlignment="Center"  VerticalAlignment="Center" Padding="10" Margin="10"/>
            </Border>
            <Border BorderBrush="Red" BorderThickness="2" Margin="5">
                <TextBlock x:Name="SecondBlock" Text="Test" TextAlignment="Center"  VerticalAlignment="Center" Padding="10" Margin="10"/>
            </Border>
            <Border BorderBrush="Red" BorderThickness="2" Margin="5">
                <TextBlock x:Name="ThirdBlock" Text="Test" TextAlignment="Center"  VerticalAlignment="Center" Padding="10" Margin="10"/>
            </Border>
            <Border BorderBrush="Red" BorderThickness="2" Margin="5">
                <StackPanel Orientation="Vertical">
                    <Border BorderBrush="Red" BorderThickness="2" Margin="5">
                        <TextBlock x:Name="VerticalOneBlock" Text="Test" TextAlignment="Center"  VerticalAlignment="Center" Padding="10" Margin="10"/>
                    </Border>
                    <Border BorderBrush="Red" BorderThickness="2" Margin="5">
                        <TextBlock x:Name="VerticalTwoBlock" Text="Test" TextAlignment="Center"  VerticalAlignment="Center" Padding="10" Margin="10"/>
                    </Border>
                    <Border BorderBrush="Red" BorderThickness="2" Margin="5">
                        <TextBlock x:Name="VerticalThreeBlock" Text="Test" TextAlignment="Center"  VerticalAlignment="Center" Padding="10" Margin="10"/>
                    </Border>
                </StackPanel>
            </Border>

            <Border BorderBrush="Red" BorderThickness="2" Margin="5">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition />
                        <RowDefinition />
                        <RowDefinition />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition />
                        <ColumnDefinition />
                        <ColumnDefinition />
                    </Grid.ColumnDefinitions>

                    <Border Grid.Row="0" Grid.ColumnSpan="3" BorderBrush="Red" BorderThickness="2" Margin="5">
                        <TextBlock x:Name="GridOneBlock" Text="Test" TextAlignment="Center"  VerticalAlignment="Center" Padding="10" Margin="10"/>
                    </Border>
                    <Border Grid.Row="1" Grid.RowSpan="2" Grid.Column="0" BorderBrush="Red" BorderThickness="2" Margin="5">
                        <TextBlock x:Name="GridTwoBlock" Text="Test" TextAlignment="Center"  VerticalAlignment="Center" Padding="10" Margin="10"/>
                    </Border>
                    <Border Grid.Row="1" Grid.Column="1" BorderBrush="Red" BorderThickness="2" Margin="5">
                        <TextBlock x:Name="GridThreeBlock" Text="Test" TextAlignment="Center"  VerticalAlignment="Center" Padding="10" Margin="10"/>
                    </Border>
                    <Border Grid.Row="1" Grid.Column="3" BorderBrush="Red" BorderThickness="2" Margin="5">
                        <TextBlock x:Name="GridFourBlock" Text="Test" TextAlignment="Center"  VerticalAlignment="Center" Padding="10" Margin="10"/>
                    </Border>
                    <Border Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2" BorderBrush="Red" BorderThickness="2" Margin="5">
                        <TextBlock x:Name="GridFiftBlock" Text="Test" TextAlignment="Center"  VerticalAlignment="Center" Padding="10" Margin="10"/>
                    </Border>
                </Grid>
            </Border>

        </StackPanel>
    </StackPanel>
</Window>
